using System;

namespace AdvancedInspector
{
	[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
	public class ExpandableAttribute : Attribute, IListAttribute
	{
		private bool expanded;

		private bool expandable = true;

		public bool Expanded
		{
			get
			{
				return expanded;
			}
			set
			{
				expanded = value;
			}
		}

		public bool Expandable
		{
			get
			{
				return expandable;
			}
			set
			{
				expandable = value;
			}
		}

		public ExpandableAttribute()
		{
		}

		public ExpandableAttribute(bool expandable)
		{
			this.expandable = expandable;
		}

		public ExpandableAttribute(bool expandable, bool expanded)
		{
			this.expanded = expanded;
			this.expandable = expandable;
		}
	}
}
